import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const ThemeKey = '#1899ec'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 颜色设置
export function setTheme(token) {
  return Cookies.set('ThemeKey', token)
}

export function removeTheme() {
  return Cookies.remove('ThemeKey')
}

export function getTheme() {
  return Cookies.get('ThemeKey') || ThemeKey
}
